package org.peoples.messages {
	
	import org.peoples.net.PeoplesProxy;
	
	public class MessageProxy extends PeoplesProxy implements IMessageProxy {
		
		public function MessageProxy(uri:String, handler:Object):void {
			super(uri + "/messages", handler)
		}
		
		public function sendMessage(message:String, time:Date, userID:int, roomID:int):void {
			var resp:Responder = new Responder(onResult, onFault);
			conn.call("sendMessage", resp, message, time, userID, roomID);
		}
		
	}
	
}